

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <meta name="layout" content="main" />
    <title>User List</title>
  </head>
  <body>
    <g:render template="/menu" />
    <div class="body">
      <h1>User List</h1>
      <g:if test="${flash.message}">
        <div class="message">${flash.message}</div>
      </g:if>
      <div class="list">
        <table>
          <tbody>
          <g:each in="${userInstanceList}" status="i" var="userInstance">
            <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">

            <td valign="top" class="value">
              <img alt="WTF" src="${createLink(controller:'user', action:'avatar_image', id:userInstance?.id)}"
                   height="50" width="50" />
            </td>

            <td><g:link action="show" id="${userInstance.id}">${fieldValue(bean:userInstance, field:'id')}</g:link></td>

            <td>${fieldValue(bean:userInstance, field:'userName')}</td>


            </tr>
          </g:each>
          </tbody>
        </table>
      </div>
      <div class="paginateButtons">
        <g:paginate total="${userInstanceTotal}" />
      </div>
    </div>
  </body>
</html>
